﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace ThreeByte.ActiveDeck.AddIn.Controls
{
    public interface ICloseable
    {
        event EventHandler<DialogResultEventArgs> Close;
    }

    public class DialogResultEventArgs : EventArgs
    {
        public static DialogResultEventArgs OK = new DialogResultEventArgs(System.Windows.Forms.DialogResult.OK);
        public static DialogResultEventArgs Cancel = new DialogResultEventArgs(System.Windows.Forms.DialogResult.Cancel);

        public System.Windows.Forms.DialogResult DialogResult {
            get;
            private set;
        }

        public DialogResultEventArgs(System.Windows.Forms.DialogResult dialogResult) {
            DialogResult = dialogResult;
        }
    }
}
